package we.extension;

import java.util.Map;


public class CSystemEvent {
    public enum SystemEventType {
        LOGIN,
        DISCONNECT,
        CREATE_ROOM,
        JOIN_ROOM,
        DELETE_ROOM,
        OUT_ROOM
    }

    public SystemEventType type;
    private Object source;
    private Map<String, Object> params;

    public CSystemEvent(Object source, Map<String, Object> params) {
        this.source = source;
        this.params = params;
    }

    public Map<String, Object> getParams() {
        return params;
    }
}
